#pragma once
#include<OpenThreads\Mutex>
#include "MutexPtr.h"
#include <exception>
template <typename _Ty>
class CThreadPtr
{
public:

	CThreadPtr(_Ty* pObj)
	{
		//m_ptrData = pObj;
	}

	~CThreadPtr(void)
	{

	}

	_Ty* operator -> ()
	{
		//CMutexPtr ptrMutex(m_ptrData->getRefMutex());
		//if(NULL != ptrMutex.get() && 0 == ptrMutex->lock())
		//{
			return m_ptrData;
		//}
		//else
		//{
		//	throw new std::exception("Failed to set lock");
		//}
	}

private:
	_Ty* m_ptrData; 
};
